<template>
	<scroll-view>
		<view class="container">
			<!-- Toolbar -->
			<pyh-nv ref="nv" :config="nvConfig"></pyh-nv>
			<!-- Backdrop -->
			<view class="topBackrop"></view>
			<!-- Top -->
			<view class="topContainer" :style="{'padding-top':((actionBarHeight - 5)+'px')}">
				<view class="top uni-flex uni-column">
					<!-- 企业认证 -->
					<view class="uni-flex" style="display: flex; justify-content: center;">
						<view
							style="background-color: rgba(255, 255, 255, 0.2); border-radius: 50rpx; display: flex; align-items: center; justify-content: center; margin: 0rpx 0rpx; margin-top: 15rpx; padding: 17rpx 37rpx;">
							<view
								style="background-color: rgba(255, 243, 189, 1); border: 1rpx solid rgba(255, 102, 0, 1); border-radius: 6rpx; color: rgba(255, 102, 0, 1); font-size: 20rpx; display: flex; align-items: center; justify-content: center; margin-right: 10rpx; padding: 3rpx 9rpx;">
								已认证
							</view>
							<image style="width: 36rpx;" mode="widthFix" src="@/static/ic_enterprise.png"></image>
							<view style="color: rgba(41, A43, 53, 1); font-size: 28rpx; margin-left: 10rpx;">
								上海倒春****科技有限公司
							</view>
						</view>
					</view>
					<!-- 用户 -->
					<view class="uni-flex" style="margin: 0rpx 50rpx; margin-top: 27rpx;">
						<!-- 头像 -->
						<image style="width: 146rpx;" mode="widthFix" src="../../../static/ic_avatar_def.png"></image>
						<!-- 昵称 / 手机号 -->
						<view
							style="margin-left: 25rpx; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;">
							<view style="color: rgba(41, 43, 53, 1); font-size: 36rpx; font-weight: bold;">
								我是小迷糊
							</view>
							<view style="color: rgba(41, 43, 53, 0.7); font-size: 24rpx; margin-top: 20rpx;">
								13126595606
							</view>
						</view>
					</view>
					<!-- 快捷菜单 -->
					<view class="uni-flex" style="justify-content: center; margin-top: 5rpx;">
						<!-- 历史询价单 -->
						<view
							style="width: 221rpx; height: 200rpx; display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: white; border-radius: 20rpx;">
							<image style="width:90rpx;" mode="widthFix" src="@/static/mine/ic_mine_menu_01.png"></image>
							<view style="color: rgba(41, 43, 53, 1); font-size: 28rpx; margin-top: 26rpx;">历史询价单</view>
						</view>
						<!-- 订单查询 -->
						<view
							style="width: 221rpx; height: 200rpx; display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: white; border-radius: 20rpx; margin-left: 18rpx;">
							<image style="width:90rpx;" mode="widthFix" src="@/static/mine/ic_mine_menu_02.png"></image>
							<view style="color: rgba(41, 43, 53, 1); font-size: 28rpx; margin-top: 26rpx;">订单查询</view>
						</view>
						<!-- 专属客服 -->
						<view
							style="width: 221rpx; height: 200rpx; display: flex; flex-direction: column; align-items: center; justify-content: center; background-color: white; border-radius: 20rpx; margin-left: 18rpx;">
							<image style="width:90rpx;" mode="widthFix" src="@/static/mine/ic_mine_menu_03.png"></image>
							<view style="color: rgba(41, 43, 53, 1); font-size: 28rpx; margin-top: 26rpx;">专属客服</view>
						</view>
					</view>
				</view>
				<!-- 菜单 -->
				<view style="width: 100%;">
					<view class="menu" style="padding: 0rpx 60rpx;">
						<!-- 账单余额 -->
						<view class="uni-flex uni-row"
							style="height: 116rpx; align-items: center; border-top: 1rpx solid rgba(244, 244, 244, 1);">
							<image style="width: 40rpx;" src="@/static/mine/ic_mine_wallet.png" mode="widthFix"></image>
							<view style="color: rgba(41, 43, 53, 1); font-size: 28rpx;  margin-left: 42rpx;">
								账单余额
							</view>
							<view style="-webkit-flex: 1;flex: 1;"></view>
							<view style="color: rgba(41, 43, 53, 0.9); font-size: 26rpx; margin-left: 42rpx;">
								2,089/元
							</view>
						</view>
						<!-- 企业认证 -->
						<view class="uni-flex uni-row"
							style="height: 116rpx; align-items: center; border-top: 1rpx solid rgba(244, 244, 244, 1);"
							@tap="navigateToEnterprise">
							<image style="width: 40rpx;" src="@/static/mine/ic_mine_enterprise.png" mode="widthFix">
							</image>
							<view style="color: rgba(41, 43, 53, 1); font-size: 28rpx;  margin-left: 42rpx;">
								企业认证
							</view>
							<view style="-webkit-flex: 1;flex: 1;"></view>
							<view style="color: rgba(41, 43, 53, 0.9); font-size: 26rpx; margin-left: 42rpx;">
								已完成
							</view>
						</view>
						<!-- 系统设置 -->
						<view class="uni-flex uni-row"
							style="height: 116rpx; align-items: center; border-top: 1rpx solid rgba(244, 244, 244, 1);">
							<image style="width: 40rpx;" src="@/static/mine/ic_mine_setting.png" mode="widthFix">
							</image>
							<view style="color: rgba(41, 43, 53, 1); font-size: 28rpx;  margin-left: 42rpx;">
								系统设置
							</view>
						</view>
						<!-- 关于我们 -->
						<view class="uni-flex uni-row"
							style="height: 116rpx; align-items: center; border-top: 1rpx solid rgba(244, 244, 244, 1);">
							<image style="width: 40rpx;" src="@/static/mine/ic_mine_about.png" mode="widthFix"></image>
							<view style="color: rgba(41, 43, 53, 1); font-size: 28rpx;  margin-left: 42rpx;">
								关于我们
							</view>
						</view>
					</view>
					<!-- 退出登录 -->
					<view class="logout">退出登录</view>
				</view>
			</view>
		</view>
	</scroll-view>
</template>

<script>
	export default {
		data() {
			return {
				nvConfig: {
					title: "个人中心",
					bgColor: "#ffffff",
					color: "#000000",
					fixedAssist: {
						hide: true,
					},
					transparent: {
						initColor: "#000000",
					},
					back: {
						hide: true
					}
				},
			}
		},
		onPageScroll(e) {
			this.$refs.nv.pageScroll(e)
		},
		onLoad() {

		},
		computed: {
			actionBarHeight() {
				return parseInt(88 * uni.getSystemInfoSync().windowWidth / 750) + uni.getSystemInfoSync().statusBarHeight
			}
		},
		methods: {
			navigateToEnterprise() {
				uni.navigateTo({
					url: '../mine/Enterprise'
				})
			}
		}
	}
</script>

<style>
	@import '@/common/uni-nvue.css';

	page {
		background-color: $uni-bg-color-grey;
	}

	.container {
		width: 100%;
	}

	.topBackrop {
		width: 100%;
		height: 540rpx;
		display: flex;
		position: fixed;
		z-index: 1;
		background-image: linear-gradient(to bottom, #F8D849, #FFED9C);
	}

	.topContainer {
		width: 100%;
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		justify-content: center;
		align-items: center;
	}

	.top {
		width: 100%;
		z-index: 10;
	}

	.menu {
		margin: 20rpx 25rpx;
		background-color: white;
		border-radius: 20rpx;
		box-sizing: border-box;
		align-items: center;
	}

	.logout {
		display: flex;
		justify-content: center;
		margin: 40rpx 40rpx;
		align-items: center;
		height: 90rpx;
		background-color: rgba(248, 216, 73, 1);
		border-radius: 50rpx;
		color: rgba(41, 43, 53, 1);
		font-size: 28rpx;
		font-weight: bold;
	}
</style>